import nprogress from '@logdna/nprogress'
import { AxiosResponse } from 'axios'

/*
  拦截器名称：全局设置请求的 loading 动画
*/
const setLoading = (response: AxiosResponse) => {
  nprogress.done()
  return response
}

export default setLoading
